package com.mes.biz.domain;

import javax.validation.Valid;
import java.math.BigDecimal;
import javax.validation.constraints.NotBlank;
import lombok.Data;
import com.mes.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.mes.common.utils.log.annotation.FieldRemark;
import com.mes.common.utils.log.annotation.LogField;
import com.mes.common.annotation.Excel;

/**
 * 仓位调整单表体对象 biz_space_adjust_item
 * @author wy
 * @email wy
 * @date 2024-04-03
 */
@Data
public class BizSpaceAdjustItem extends BaseEntity<BizSpaceAdjustItem>
{
    private static final long serialVersionUID = 1L;

    /** 仓位调拨编号 */
    @Excel(name = "仓位调拨编号")
    @NotBlank(message = "仓位调拨编号不允许为空")
    @LogField
    @FieldRemark(name = "仓位调拨编号",field = "spaceNo")
    private String spaceNo;

    /** 出库仓位 */
    @Excel(name = "出库仓位")
    @LogField
    @FieldRemark(name = "出库仓位",field = "spaceId")
    private String spaceId;

    /** 产品id */
    @Excel(name = "产品id")
    @NotBlank(message = "产品id不允许为空")
    @LogField
    @FieldRemark(name = "产品id",field = "productCode")
    private String productCode;

    /** 数量 */
    @Excel(name = "数量")
    @LogField
    @FieldRemark(name = "数量",field = "productNumber")
    private BigDecimal productNumber;

    /** 入库仓位 */
    @Excel(name = "入库仓位")
    @LogField
    @FieldRemark(name = "入库仓位",field = "inSpaceId")
    private String inSpaceId;

    /** 单位 */
    @Excel(name = "单位")
    @LogField
    @FieldRemark(name = "单位",field = "unit")
    private String unit;

    /** 租户id */
    @Excel(name = "租户id")
    @NotBlank(message = "租户id不允许为空")
    @LogField
    @FieldRemark(name = "租户id",field = "tenantId")
    private String tenantId;

    public void setSpaceNo(String spaceNo)
    {
        this.spaceNo = spaceNo;
    }

    public String getSpaceNo()
    {
        return spaceNo;
    }

    public void setSpaceId(String spaceId)
    {
        this.spaceId = spaceId;
    }

    public String getSpaceId()
    {
        return spaceId;
    }

    public void setProductCode(String productCode)
    {
        this.productCode = productCode;
    }

    public String getProductCode()
    {
        return productCode;
    }

    public void setProductNumber(BigDecimal productNumber)
    {
        this.productNumber = productNumber;
    }

    public BigDecimal getProductNumber()
    {
        return productNumber;
    }

    public void setInSpaceId(String inSpaceId)
    {
        this.inSpaceId = inSpaceId;
    }

    public String getInSpaceId()
    {
        return inSpaceId;
    }

    public void setUnit(String unit)
    {
        this.unit = unit;
    }

    public String getUnit()
    {
        return unit;
    }

    public void setTenantId(String tenantId)
    {
        this.tenantId = tenantId;
    }

    public String getTenantId()
    {
        return tenantId;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("spaceNo", getSpaceNo())
            .append("spaceId", getSpaceId())
            .append("productCode", getProductCode())
            .append("productNumber", getProductNumber())
            .append("inSpaceId", getInSpaceId())
            .append("unit", getUnit())
            .append("tenantId", getTenantId())
            .append("remark", getRemark())
            .append("id", getId())
            .append("createBy", getCreateBy())
            .append("createDept", getCreateDept())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("updateIp", getUpdateIp())
            .append("version", getVersion())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
